<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
{{-- 引入分页样式--}}
    <link href="{{asset('css/app.css')}}" rel="stylesheet">

</head>
<body>
<table>
    <thead>
    <tr>
        <th>id</th>
        <th>name</th>
        <th>age</th>
        <th>email</th>
        <th>avatar</th>
    </tr>
    </thead>
    <tbody>
   @foreach($data as $val)
       <tr>
           <td>{{$val -> id}}</td>
           <td>{{$val -> name}}</td>
           <td>{{$val -> age}}</td>
           <td>{{$val -> email}}</td>
           <td><img src="{{ltrim($val -> avatar,'.')}}" alt="头像"></td>
       </tr>
   @endforeach
    </tbody>
</table>
{{--分页链接按钮--}}
{{$data -> links()}}



</body>
</html>